<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1,user-scalable=no,maximum-scale=1,initial-scale=1"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <title>我的兑奖记录</title>
    <script src="../addons/kuaiwei_exmall/images/jquery-2.1.4.min.js"></script>
	<link rel="stylesheet" href="../addons/kuaiwei_exmall/images/index.css">

</head>
<body>
<header>
    <img style="width: 100%;margin-bottom: 5%;height: auto;" src="../addons/kuaiwei_exmall/images/duijiangtop.jpg" alt="">
</header>

<div>
    <ul class="media-list" style="width: 95%;background: #ffffff;min-height: 60px;    margin-left: auto;margin-right: auto;border-radius: 5px;">

        {if !$awdata}<p style="text-align: center;line-height: 60px;font-size: 18px;">暂时无兑奖记录！</p>{else}
        {loop $awdata $row}

        <li class="media" >
            <div class="media-left" style="padding-left: 10px;">
                <a href="#">
                    <img style="width: 60px;height: 60px;margin-left:5px;border-radius:50%;background:#CDCDCD;font-size:0" class="media-object" src="{php echo tomedia($row['avatar'])}" >
                </a>
            </div>
            <div class="media-body">
                <h4 class="media-heading">
                    {$row['spname']}
                </h4>
                <p>
                    时间：{php echo date("Y-m-d H:i", $row['createtime'])}
                </p>
                <p>
                    {if $row['states']==1}
                    <span>（待审核）</span>
                    {else}
                        <span style="color: #3e8f2e">已兑奖({php echo date("Y-m-d H:i", $row['consumetime'])})</span>
                    {/if}
                </p>

            </div>
        </li>

        {/loop}
        {/if}

    </ul>

</div>

<div style="text-align: center;margin: 15px auto;">

    <a style="color: #DA1F1A;font-size: 18px;" href="{php echo $this->createMobileUrl('exmall')}">进入商城</a>

</div>

    <div id="shadow2" {if $nofollow == 1 && $erwematype == 1} style="display: block" {/if}></div>
    <div class="rules_tip" id="rules_tip" {if $nofollow == 1 && $erwematype == 1} style="display: block" {/if}>
    <div class="share" style="width: 90%;height: 100%;overflow-y: auto;margin-left: 5%;margin-right: 5%">
        <div class="r" style="margin-top: 20px;">

            <div style="text-align: center;margin-top: 40%;">
                <img src="{$erwemaimg}" style="width: 60%;height: auto" alt="">
                <span style="display: inline-block;width: 62%;line-height: 24px;margin-top: 15px;">{$erwemaword}</span>
            </div>

        </div>
    </div>
    </div>

</body>

<!-- 微信分享设置 -->
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
    wx.config({
        debug:false,
        appId: '{$package["appId"]}',
        timestamp: '{$package["timestamp"]}',
        nonceStr: '{$package["nonceStr"]}',
        signature: '{$package["signature"]}',
        jsApiList: [
            'onMenuShareTimeline','onMenuShareAppMessage','onMenuShareWeibo'
        ]
    });

    var shareMeta  = {
        title: '{$sharetitle}',
        desc: '{$sharedesc}',
        link: "{$sharelink}",
        imgUrl: "{$shareimg}"
    };

    wx.ready(function(){
        wx.onMenuShareTimeline(shareMeta);
        wx.onMenuShareAppMessage(shareMeta);
        wx.onMenuShareWeibo(shareMeta);
    });

</script>
</html>
